package com.qianfeng.qlm.handforireader.model;

import org.json.JSONObject;

/**
 * Created by LinXiangLin on 2015/3/26.
 */
public class ActiveBean {

    private String id; // id "5",
    private String active_name; // active_name "画江湖同人轻漫画",
    private String active_info; // active_info "画江湖同人轻漫画",
    private String active_type; // active_type "1",
    private String rank; // rank "2",
    private String active_pic_url_1; // active_pic_url_1 "/Public/Images/qingman/active/item/1422603375.jpg",
    private String is_show; // is_show "1",
    private String active_desc_url; // active_desc_url "http://zixun.nikankan.com/article.php?m=Index&a=content2&aid=3504"

    public void parseJson(JSONObject jsonObject){
        if (jsonObject != null){

            this.setId(jsonObject.optString("id"));
            this.setActive_name(jsonObject.optString("active_name"));
            this.setActive_info(jsonObject.optString("active_info"));
            this.setActive_type(jsonObject.optString("active_type"));
            this.setRank(jsonObject.optString("rank"));
            this.setActive_pic_url_1(jsonObject.optString("active_pic_url_1"));
            this.setIs_show(jsonObject.optString("is_show"));
            this.setActive_desc_url(jsonObject.optString("active_desc_url"));

        }
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getActive_name() {
        return active_name;
    }

    public void setActive_name(String active_name) {
        this.active_name = active_name;
    }

    public String getActive_info() {
        return active_info;
    }

    public void setActive_info(String active_info) {
        this.active_info = active_info;
    }

    public String getActive_type() {
        return active_type;
    }

    public void setActive_type(String active_type) {
        this.active_type = active_type;
    }

    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }

    public String getActive_pic_url_1() {
        return active_pic_url_1;
    }

    public void setActive_pic_url_1(String active_pic_url_1) {
        this.active_pic_url_1 = active_pic_url_1;
    }

    public String getIs_show() {
        return is_show;
    }

    public void setIs_show(String is_show) {
        this.is_show = is_show;
    }

    public String getActive_desc_url() {
        return active_desc_url;
    }

    public void setActive_desc_url(String active_desc_url) {
        this.active_desc_url = active_desc_url;
    }
}
